home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / dejagnu.lha / dejagnu-1.0.1 / expect / exp_log.h < prev    next >
C/C++ Source or Header  |  1993-03-02  |  937b  |  31 lines

  1. /* exp_log.h */
  2.  
  3. extern int loguser;    /* shared by cmdLoguser, cmdExpect and cmdSpawn */
  4.  
  5. /* special version of log for non-null-terminated strings which */
  6. /* never need printf-style formatting. */
  7. #define logn(buf,length)  { \
  8.               if (logfile) fwrite(buf,1,length,logfile); \
  9.               if (debugfile) fwrite(buf,1,length,debugfile); \
  10.               }
  11.  
  12. char *printify();
  13. #define dprintify(x)    ((is_debugging || debugfile)?printify(x):0)
  14. /* in circumstances where "debuglog(printify(...))" is written, call */
  15. /* dprintify instead.  This will avoid doing any formatting that would */
  16. /* occur before debuglog got control and decided not to do anything */
  17. /* because (is_debugging || debugfile) was false. */
  18.  
  19. void Log();
  20. void errorlog();
  21. void exp_debuglog();
  22. void nflog();
  23. void nferrorlog();
  24.  
  25. extern FILE *debugfile;
  26. extern FILE *logfile;
  27. extern int logfile_all;
  28. extern int loguser;
  29.  
  30. extern int is_debugging;    /* useful to know for avoid debug calls */
  31.